<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>百顺通云-手机下载中心</title>
	<link rel="shortcut icon" href="/images/user/favicon.png" type="image/x-icon">
    <link type="text/css" rel="stylesheet" href="/css/user/global.css" />
    <link type="text/css" rel="stylesheet" href="/css/user/img_turn.css" />
    <link type="text/css" rel="stylesheet" href="/css/user/download/phone_down.css" />
	<link type="text/css" rel="stylesheet" href="/css/dialog.min.css">
    <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/js/dialog.min.js"></script>
	<script type="text/javascript" src="/js/bstdialog.min.js"></script>
    <script type="text/javascript" src="/js/user/img_turn.js"></script>
    <script type="text/javascript" src="/js/user/download/download.js"></script>
</head>

<body>
<input type="hidden" id="page" value="${page}"/>
<input type="hidden" id="pageCount" value="${pageCount}"/>
<input type="hidden" id="pageSize" value="${pageSize}"/>
<input type="hidden" id="downloadId" value="${downloadId}"/>
<!--页面内容开始-->
<div class="Wrapper"> 
  <!---------------------------------页面头部及导航部分开始------------------------------------>
  <jsp:include page="../common/header.jsp"/>
  <!---------------------------------页面头部及导航部分结束------------------------------------>
  <div class="cl"></div>
  <!---------------------------------内容部分------------------------------------>
  <div class="content"> 

    <!---------------------------------左侧结束------------------------------------> 
    <!---------------------------------右侧------------------------------------>
    <div class="main-r" style="margin:0 auto;" id="download_adjust">
      <!--合作伙伴开始-->
      <div class="partner mt20">
        <div class="lm-t">
          <div class="headtitle fl">客户端下载</div>
        </div>
        <div class="box" id="phone">
			<c:forEach items="${goodsDownloadList}" var="gd" varStatus="status">
				<div class="phodown_mok cle">
		            <div class="img_con"><img src="${gd.imageUrl}" width="100px" height="100px"></div>
		            <div class="text_con">
		              <h3>${gd.goodsDownloadName}</h3>
		              <p>${gd.goodsDownloadDescribe}</p>
		              <div class="btn_con cle">
	                	<%-- <c:if test="${gd.isAndroid == 0 }">
	                		<div class="android">
			                  <a href="${gd.androidUrl}" class="btn"><i class="icon"></i><span>安卓版</span></a>
			                  <a href="#" class="ewm" id="yad${status.index + 1}"><img src="${gd.androidImageUrl}" width="16" height="16" class="small"/><div class="tc_ewm" id="ewmad${status.index + 1}" style="display: none;"><img src="${gd.androidImageUrl}" width="160" height="160"/></div></a>
			                </div>
	                	</c:if>
	                	<c:if test="${gd.isIos == 0 }">
	                		<div class="apple">
			                  <a href="${gd.iosUrl}" class="btn"><i class="icon"></i><span>IOS版</span></a>
			                  <a href="#" class="ewm" id="yap${status.index + 1}"><img src="${gd.iosImageUrl}" width="16" height="16" class="small"/><div class="tc_ewm" id="ewmap${status.index + 1}" style="display:none;"><img src="${gd.iosImageUrl}" width="160" height="160"/></div></a>
			                </div>
	                	</c:if> --%>
	                	<c:if test="${gd.isAndroid == 0 || gd.isIos == 0}">
	                		<div class="phone">
			                  <a href="javascript:dialog('${gd.androidImageUrl}','${gd.iosImageUrl}','${gd.goodsDownloadName}','${gd.goodsDownloadDescribe}','${gd.imageUrl}','${gd.slogan}','${gd.adapter}')" class="btn"><i class="icon"></i><span>手机版</span></a>
			                  <a href="#" class="ewm" id="yad${status.index + 1}">
				                  <c:choose>
			                		  <c:when test="${gd.isAndroid == 0}">
				                		  <img src="${gd.androidImageUrl}" width="16" height="16" class="small"/>
					                  	  <div class="tc_ewm" id="ewmad${status.index + 1}" style="display: none;">
					                  	  <img src="${gd.androidImageUrl}" width="160" height="160"/></div>
			                		  </c:when>
			                		  <c:otherwise>
				                		  <img src="${gd.iosImageUrl}" width="16" height="16" class="small"/>
				                		  <div class="tc_ewm" id="ewmad${status.index + 1}" style="display:none;">
				                		  <img src="${gd.iosImageUrl}" width="160" height="160"/></div>
			                		  </c:otherwise>
	                			  </c:choose>
			                  </a>
			                </div>
	                	</c:if>
	                	<c:if test="${gd.isPc == 0 }">
		                	<div class="pc">
			                  <a href="${gd.pcUrl}" class="btn"><i class="icon"></i><span>电脑版</span></a>
			                </div>
		                </c:if>
	                	<c:if test="${gd.isInk == 0 }">
		                	<div class="pc">
			                  <a href="${gd.inkUrl}" class="btn" style="width:100px;background:#FE6262;border-color:#FE6262;margin-left:30px;"><i class="icon"></i><span>桌面快捷式</span></a>
			                </div>
		                </c:if>
		              </div>
		            </div>
	          </div>
			</c:forEach>
          <div class="page mt20" align="center">共${totalRows}条记录 ${page}/${pageCount}页&nbsp;
          <a href="javascript:phoneReload(1)">首页</a> <a onclick="javascript:ajaxPageUp(${page})">上一页</a>&nbsp;
          <a onclick="javascript:ajaxPageDown(${page});">下一页</a> 
          <a href="javascript:phoneReload(${pageCount})" >尾页</a>&nbsp;
          第&nbsp;
          <select onchange="ajax2Page()" id="currPage">
              <c:forEach begin="1" end="${pageCount}" varStatus="status">
            	<option value="${status.index}" <c:if test="${status.index == page}">selected="selected"</c:if>>${status.index}</option>
              </c:forEach>
          </select>&nbsp;页
          </div>
        </div>
      </div>
    </div>
    <!--合作伙伴结束--> 
  </div>
  <!---------------------------------右侧结束------------------------------------>
  <div class="cl"></div>
</div>
<!---------------------------------内容部分结束------------------------------------> 
<!---------------------------------footer------------------------------------>
<jsp:include page="../common/footer.jsp"/>
<!---------------------------------footer结束------------------------------------>
</body>
</html>